package org.demo.test.akka;

import akka.actor.AbstractActor;

public class SenderActor extends AbstractActor {
    @Override
    public Receive createReceive() {
        return receiveBuilder().match(String.class, s -> System.out.println(Thread.currentThread().getName()+" Get:"+s))
                .matchAny(s -> System.out.println(Thread.currentThread().getName()+" Get:"+s)).build();
    }
}
